﻿using CI.Models.Data;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace CI.Models.Tests
{
    [TestClass]
    public class XmlDataRepositoryTests
    {
        [TestMethod]
        public void CanRetrieve_Robotics_ByTypeID()
        {
            var repo = new XmlDataRepository<Item>("Production.xml");

            repo.Load();

            dynamic robotics = repo.Get(9848);

            Assert.IsNotNull(robotics);
            Assert.IsNotNull(robotics.Schematic);
        }
    }
}